package com.huixuebao.exchange.controller.settle;


import com.huixuebao.common.bean.ApiResult;
import com.huixuebao.exchange.service.SettleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/exchangeApi/settle")
public class SettleController {

    @Autowired
    SettleService settleService;

    /**
     * 获取保单授权码
     * @return
     */
    @GetMapping("/getSettleCode")
    public ApiResult getSettleCode(String policyId){
        return settleService.getSettleCode(policyId);
    }
}
